{% extends 'JobeetBundle::layout.html.twig' %}

{% block title %}
    {{job.getCompany ~ ' is looking for a ' ~ job.getPosition }}
{% endblock %}

{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" type="text/css" media="screen" href="{{asset('bundles/jobeet/css/job.css')}}"  />
{% endblock %}

{% block sf_content %} 
    <div id="job">
      <h1>{{job.getCompany}}</h1>
      <h2>{{job.getLocation}}</h2>
      <h3>
        {{job.getPosition}}
        <small> - {{job.getType}}</small>
      </h3>

      {% if job.getLogo %}
        <div class="logo">
          <a href="{{job.getUrl}}">
            <img src="{{asset('bundles/jobeet/images/' ~ job.getLogo)}}"
              alt="{{job.getCompany ~ ' logo'}}" />
          </a>
        </div>
      {% endif %}

      <div class="description" >
        {{job.getDescription}}
      </div>

      <h4>How to apply?</h4>

      <p class="how_to_apply">{{job.getHowToApply}}</p>

      <div class="meta">
        <small>posted on {{job.getCreatedAt|date('m/d/Y')}}</small>
      </div>

      <div style="padding: 20px 0">
        <a href="#{# url_for('job/edit?id='.$job->getId()) #}">
          Edit
        </a>
      </div>
    </div>
{% endblock %}
